//
//  TLHomeViewController.swift
//  TLSinaWeiBo
//
//  Created by 谭亮 on 16/5/10.
//  Copyright © 2016年 tanliang. All rights reserved.
//

import UIKit

class TLHomeViewController: TLBaseTableViewController {

      override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    /*func test1() {
        TLNetworkTool.sharedInstance.afnManager.GET(<#T##URLString: String##String#>, parameters: <#T##AnyObject?#>, success: <#T##((NSURLSessionDataTask, AnyObject?) -> Void)?##((NSURLSessionDataTask, AnyObject?) -> Void)?##(NSURLSessionDataTask, AnyObject?) -> Void#>, failure: <#T##((NSURLSessionDataTask?, NSError) -> Void)?##((NSURLSessionDataTask?, NSError) -> Void)?##(NSURLSessionDataTask?, NSError) -> Void#>)
    }
    
    func test2() {
        TLNetworkTool.sharedInstance.afnManager.GET(<#T##URLString: String##String#>, parameters: <#T##AnyObject?#>, success: <#T##((NSURLSessionDataTask, AnyObject?) -> Void)?##((NSURLSessionDataTask, AnyObject?) -> Void)?##(NSURLSessionDataTask, AnyObject?) -> Void#>, failure: <#T##((NSURLSessionDataTask?, NSError) -> Void)?##((NSURLSessionDataTask?, NSError) -> Void)?##(NSURLSessionDataTask?, NSError) -> Void#>)
    }
    
    func test3() {
        TLNetworkTool.sharedInstance.afnManager.GET(<#T##URLString: String##String#>, parameters: <#T##AnyObject?#>, success: <#T##((NSURLSessionDataTask, AnyObject?) -> Void)?##((NSURLSessionDataTask, AnyObject?) -> Void)?##(NSURLSessionDataTask, AnyObject?) -> Void#>, failure: <#T##((NSURLSessionDataTask?, NSError) -> Void)?##((NSURLSessionDataTask?, NSError) -> Void)?##(NSURLSessionDataTask?, NSError) -> Void#>)
    }
    
    func test4() {
        TLNetworkTool.sharedInstance.afnManager.GET(<#T##URLString: String##String#>, parameters: <#T##AnyObject?#>, success: <#T##((NSURLSessionDataTask, AnyObject?) -> Void)?##((NSURLSessionDataTask, AnyObject?) -> Void)?##(NSURLSessionDataTask, AnyObject?) -> Void#>, failure: <#T##((NSURLSessionDataTask?, NSError) -> Void)?##((NSURLSessionDataTask?, NSError) -> Void)?##(NSURLSessionDataTask?, NSError) -> Void#>)
    }*/
    
    //------------------封装后
    
    func test5() {
        TLNetworkTool.sharedInstance.request(RequestMethod.GET,URLString: "", parameters: "", success: { (_, obj) -> Void in
            
            }) { (_, error) -> Void in
                
        }
    }
    
    func test6() {
        TLNetworkTool.sharedInstance.request(RequestMethod.POST,URLString: "", parameters: "", success: { (_, obj) -> Void in
            
            }) { (_, error) -> Void in
                
        }
    }
    
    func test7() {
        TLNetworkTool.sharedInstance.request(RequestMethod.POST,URLString: "", parameters: "", success: { (_, obj) -> Void in
            
            }) { (_, error) -> Void in
                
        }
    }
}
